package com.xiaoxu.bbs.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("TBL_TOPIC")
public class Topic {
	//主题页ID
	private Long id;
	//主题标题
	private String title;
	//主题内容
	private String content;
	//点赞数
	private Integer agree;
	//主题图片
	private String topicImg;
	//发布时间
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;
	//修改时间
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;
	//用户ID
	private Long userId;
	//板块ID
	private Long boardId;
}
